<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
	String basepath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE HTML> 
<HTML> 
<HEAD> 
<base href="<%=basepath %>">
<script type='text/javascript'> 
var i=3; 
function getTime(){ 
document.getElementById('num').innerHTML="<font color='red'>"+i+"</font>"; 
i-=1; 
var x=setTimeout('getTime()',1000) 
if(i<=0){ 
	window.location.href="index";
clearTimeout(x); 
} 
} 
window.onload=getTime; 
</script> 
<TITLE>欢迎您!</TITLE></HEAD> 
<BODY> 
<h2>注意你访问的页面已失效!!页面将在<div id='num' style='display=inline;'>3</div>秒后跳转</h2> 
 
</BODY> 
</HTML>